﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004B3 RID: 1203
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EvolveBuildAvatar : IMessage<EvolveBuildAvatar>, IMessage, IEquatable<EvolveBuildAvatar>, IDeepCloneable<EvolveBuildAvatar>, IBufferMessage
	{
		// Token: 0x17000F80 RID: 3968
		// (get) Token: 0x06003638 RID: 13880 RVA: 0x000950E1 File Offset: 0x000932E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EvolveBuildAvatar> Parser
		{
			get
			{
				return EvolveBuildAvatar._parser;
			}
		}

		// Token: 0x17000F81 RID: 3969
		// (get) Token: 0x06003639 RID: 13881 RVA: 0x000950E8 File Offset: 0x000932E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EvolveBuildAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F82 RID: 3970
		// (get) Token: 0x0600363A RID: 13882 RVA: 0x000950FA File Offset: 0x000932FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EvolveBuildAvatar.Descriptor;
			}
		}

		// Token: 0x0600363B RID: 13883 RVA: 0x00095101 File Offset: 0x00093301
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildAvatar()
		{
		}

		// Token: 0x0600363C RID: 13884 RVA: 0x00095109 File Offset: 0x00093309
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildAvatar(EvolveBuildAvatar other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this.damage_ = other.damage_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600363D RID: 13885 RVA: 0x00095146 File Offset: 0x00093346
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildAvatar Clone()
		{
			return new EvolveBuildAvatar(this);
		}

		// Token: 0x17000F83 RID: 3971
		// (get) Token: 0x0600363E RID: 13886 RVA: 0x0009514E File Offset: 0x0009334E
		// (set) Token: 0x0600363F RID: 13887 RVA: 0x00095156 File Offset: 0x00093356
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000F84 RID: 3972
		// (get) Token: 0x06003640 RID: 13888 RVA: 0x0009515F File Offset: 0x0009335F
		// (set) Token: 0x06003641 RID: 13889 RVA: 0x00095167 File Offset: 0x00093367
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17000F85 RID: 3973
		// (get) Token: 0x06003642 RID: 13890 RVA: 0x00095170 File Offset: 0x00093370
		// (set) Token: 0x06003643 RID: 13891 RVA: 0x00095178 File Offset: 0x00093378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double Damage
		{
			get
			{
				return this.damage_;
			}
			set
			{
				this.damage_ = value;
			}
		}

		// Token: 0x06003644 RID: 13892 RVA: 0x00095181 File Offset: 0x00093381
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EvolveBuildAvatar);
		}

		// Token: 0x06003645 RID: 13893 RVA: 0x00095190 File Offset: 0x00093390
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EvolveBuildAvatar other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.Damage, other.Damage) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003646 RID: 13894 RVA: 0x000951F4 File Offset: 0x000933F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.Damage != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.Damage);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003647 RID: 13895 RVA: 0x00095276 File Offset: 0x00093476
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003648 RID: 13896 RVA: 0x0009527E File Offset: 0x0009347E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003649 RID: 13897 RVA: 0x00095288 File Offset: 0x00093488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.Damage != 0.0)
			{
				output.WriteRawTag(33);
				output.WriteDouble(this.Damage);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(64);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600364A RID: 13898 RVA: 0x00095308 File Offset: 0x00093508
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.Damage != 0.0)
			{
				num += 9;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600364B RID: 13899 RVA: 0x00095374 File Offset: 0x00093574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EvolveBuildAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.Damage != 0.0)
			{
				this.Damage = other.Damage;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600364C RID: 13900 RVA: 0x000953E1 File Offset: 0x000935E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600364D RID: 13901 RVA: 0x000953EC File Offset: 0x000935EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 33U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.AvatarType = (AvatarType)input.ReadEnum();
						}
					}
					else
					{
						this.Damage = input.ReadDouble();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001545 RID: 5445
		private static readonly MessageParser<EvolveBuildAvatar> _parser = new MessageParser<EvolveBuildAvatar>(() => new EvolveBuildAvatar());

		// Token: 0x04001546 RID: 5446
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001547 RID: 5447
		public const int AvatarIdFieldNumber = 1;

		// Token: 0x04001548 RID: 5448
		private uint avatarId_;

		// Token: 0x04001549 RID: 5449
		public const int AvatarTypeFieldNumber = 8;

		// Token: 0x0400154A RID: 5450
		private AvatarType avatarType_;

		// Token: 0x0400154B RID: 5451
		public const int DamageFieldNumber = 4;

		// Token: 0x0400154C RID: 5452
		private double damage_;
	}
}
